When restarting Shell, make sure to restore the original nofile limit so
that the new instance starts with the original value.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2117>
{
GPtrArray *arr;
gsize len;
+ MetaContext *meta_context;
#if defined __linux__ || defined __sun
char *buf;
*/
pre_exec_close_fds ();
+ g_object_get (global, "context", &meta_context, NULL);
+ meta_context_restore_rlimit_nofile (meta_context, NULL);
+
meta_display_close (shell_global_get_display (global),
shell_global_get_current_time (global));